package com.book.publishing.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.book.common.entity.QueryRequest;
import com.book.publishing.entity.Bookman;

import java.util.List;

/**
 * @Author: 孙鑫
 * @Description:  20173952
 */

public interface BookmanService extends IService<Bookman>{
    /**
     * @Description:查所有
     */
    List<Bookman> findBookman(Bookman bookman);

    /**
     * @Description:按名字查询
     */
    Bookman findByName(String name);
    /**
     * @Description:售书前三
     */
    List<Bookman> getSaleSort();
    /**
     * @Description:退书前三
     */
    List<Bookman> getBackSort();

    /**
     * @Description:分页
     */
    IPage<Bookman> pageBookman(QueryRequest request, Bookman bookman);

    /**
     * @Description:新增
     */
    void addBookman(Bookman bookman);

    /**
     * @Description:修改
     */
    void updateBookman(Bookman bookman);

    /**
     * @Description:复选删除
     */
    void deleteBookman(String[] bookman);

    /**
     * @Description:复选查询
     */
    List<Bookman> getBookmanByIds(String[] bookman);
}
